<?php

namespace common\models;


use yii\db\ActiveRecord;

class ShopUser extends ActiveRecord
{

    public static function tableName()
    {
        return 'shop_user';
    }

    public function attributeLabels()
    {
        return
            [
                'id'=>'操作id',
                'openid'=>'微信获取',
                'nickname'=>'用户名称',
                'avatarurl'=>'用户头像',
                'address_id'=>'收货地址',
                'shop_id'=>'店铺id',
                'create_time'=>'创建时间',
                'update_time'=>'更新时间',
            ];

    }
    public function rules()
    {
        return[
            [['id','address_id','create_time','shop_id','update_time'], 'integer'],
            [['avatarurl', 'nickname','openid'], 'string'],
        ];
    }
}